home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Columbia Kermit
/
kermit.zip
/
newsgroups
/
misc.19970626-19970929
/
000102_news@newsmaster….columbia.edu _Thu Jul 24 11:37:19 1997.msg
< prev
next >
Wrap
Internet Message Format
|
2020-01-01
|
3KB
Return-Path: <news@newsmaster.cc.columbia.edu>
Received: from newsmaster.cc.columbia.edu (newsmaster.cc.columbia.edu [128.59.35.30])
by watsun.cc.columbia.edu (8.8.5/8.8.5) with ESMTP id LAA14903
for <kermit.misc@watsun.cc.columbia.edu>; Thu, 24 Jul 1997 11:37:18 -0400 (EDT)
Received: (from news@localhost)
by newsmaster.cc.columbia.edu (8.8.5/8.8.5) id LAA11472
for kermit.misc@watsun; Thu, 24 Jul 1997 11:37:18 -0400 (EDT)
Path: news.columbia.edu!sol.ctr.columbia.edu!news.indiana.edu!vixen.cso.uiuc.edu!news-peer.sprintlink.net!news-pull.sprintlink.net!news-in-east.sprintlink.net!news.sprintlink.net!Sprint!131.103.1.114!chi-news.cic.net!ftpbox.mot.com!mothost.mot.com!news-in.cig.mot.com!not-for-mail
From: bradshaw@pcs.mot.com (Robert H. Bradshaw)
Newsgroups: comp.protocols.kermit.misc
Subject: ftp script
Date: 24 Jul 1997 14:57:46 GMT
Organization: The Unconfigured xvnews people
Lines: 48
Message-ID: <5r7qha$c40$1@trotsky.cig.mot.com>
Reply-To: bradshaw@pcs.mot.com
NNTP-Posting-Host: lion52.pcs.mot.com
Xref: news.columbia.edu comp.protocols.kermit.misc:7380
I am trying to use C-kermit's scripting feature to automate an ftp session.
QUESTION: Is this a could idea? I know there are other tools that can do this
like expect, perl, etc. These tools may be better suited for this type
of scripting but I want to minimize the number of tools that are used
for this project and I am already using kermit.
I need to make a hop through a firewall and then to the ftp server. The
problem I am having is how to actually connect to the ftp session.
I have tried
C-Kermit> ftp firewall
but this just starts an ftp session and does not allow me to use the input/output
functions.
I have also tried
C-Kermit> set host firewall ftp
This doesn't seem to establish a correct ftp session. I receive messages like:
500 '': command not understood.
>From what little I know about ftp it looks like I am at a lower level then
what the user interface really should be.
I want to be able to do something like...
clear input
set host firewall ftp ; setup connection
; may have to login here
input 5 firewall>
output {ftp xxx.yyy.zzz.aaa\13} ; send the ftp command
input 5 login: ; login
output myname\13
input 9 assword:
output mypassword\13
input 5 ftp> ; wait for ftp prompt
output bin\13 ; set binary mode
input 20 ftp> ; wait for ftp prompt
output {get some_binary_file\13} ; transfer the file
input 200 ftp>
output bye\13 ; exit ftp
output quit\13 ; exit firewall
Any comments/help would be greatly appreciated.
TIA